<p>
{foreach from=$games key=myId item=i name=gameT}
	{if $smarty.foreach.gameT.first}
		<table class="liste">
			<caption>Mac Listesi</caption>
			<tr>
				<th>Tarih</th><th>Ev Sahibi</th><th>Skor</th><th>Konuk</th>
			</tr>
	{/if}
	<tr>
		<td>{$i->date|date_format:"%d/%m/%Y"}</td>
		<td>{$i->home_team->team}</td>
		<td>{$i->home_score} - {$i->away_score}</td>
		<td>{$i->away_team->team}</td>
		<td><a href="?action=Delete&id={$i->id}" onclick='return confirm("Emin misin?")'>Sil</a> |
			<a href="?action=Form&id={$i->id}">Degistir</a>
		</td>		
	</tr>
	{if $smarty.foreach.gameT.last}
		</table>
	{/if}
{/foreach}
</p>